<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/common.jsp"%>
<%@ include file="/WEB-INF/common/taglib.jsp"%>
<!DOCTYPE html>
<html lang="en">
<script type="text/javascript">
$(function(){
	$('.form_datetime').datetimepicker({
		language:'zh-CN',
		format: "yyyy-mm-dd hh:ii:ss",
		weekStart: 1,
        autoclose: true,
        todayBtn: true,
		todayHighlight: 1,
		startView: 'month',
		forceParse: true,
        showMeridian: 1
	});
});
</script>
<body>
	<div class="container" style="width:98%;padding:8px;">
		<div class="row">
			<div class="panel panel-default">
				<div class="panel-heading">新增</div>
					<div class="panel-body">
						<form class="form-horizontal" role="form" id="dailogForm" action="<%=path%>/system/wbGoodsName/doMerge.do" method="POST">
							<input type="hidden" value="${wbGoodsName.id}" name="id" />
							<div class="form-group">
							    <label for="name" class="col-sm-2 control-label" style="text-align:left;">名称</label>
							    <div class="col-sm-8">
							      <input type="text" value="${wbGoodsName.name}" name="name" id="name" class="form-control" />
							    </div>
							</div>
							<div class="form-group">
							    <label for="sort" class="col-sm-2 control-label" style="text-align:left;">排序</label>
							    <div class="col-sm-8">
							      <input type="text" value="${wbGoodsName.sort}" name="sort" id="sort" class="form-control" />
							    </div>
							</div>
							<div class="form-group">
							    <label for="company" class="col-sm-2 control-label" style="text-align:left;">公司</label>
							    <div class="col-sm-8">
							      <input type="text" value="${wbGoodsName.company}" name="company" id="company" class="form-control"/>
							    </div>
							</div>
							<div class="form-group">
							    <label for="createTime" class="col-sm-2 control-label" style="text-align:left;">创建时间</label>
				                <div class="col-sm-8">
				                    <input id="createTime"   name="createTime"  size="16" type="text" value="<fmt:formatDate value="${wbGoodsName.createTime}" type="date"  pattern="yyyy-MM-dd HH:mm:ss"/>"  class="form-control form_datetime">
				                </div>
							</div>
							<div class="form-group">
								<div class="col-sm-offset-5 col-sm-10">
									<a type="button" class="btn btn-sm btn-default" id="formReturn" data-dismiss="modal" href="<%=path%>/system/wbGoodsName/queryPageList.do')">返回</a>
   									<button type="button" class="btn btn-sm btn-primary" id="formSubmit" onclick ="javascript:$('#dailogForm').submit();">提交</button>
								</div>
 							</div>
						</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>